<?php

require_once 'services/QuestionService.php';

class IndexController extends Controller{

	/**
	 * 暂定最新问题
	 *
	 */
	public function index(){
		$questionService = new QuestionService();
		$questions = $questionService->getRecentQuestions();
		$this->_output['questions'] = $questions;
		$this->render();
	}

}

?>
